import 'package:flutter/material.dart';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
import 'package:get/get.dart';

class WebViewPage extends StatelessWidget {
  const WebViewPage({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('${Get.arguments}'),
      ),
      body: InAppWebView(
        initialUrlRequest: URLRequest(url: WebUri('${Get.arguments}')),
        initialSettings: InAppWebViewSettings(

        ),
        onLongPressHitTestResult: (controller, hitTestResult) {
          print('---${hitTestResult.extra}');
        },
      ),
    );
  }
}
